package com.huike.clues.service.impl;

import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.vo.TbFollowup;
import com.huike.clues.mapper.TbClueMapper;
import com.huike.clues.mapper.TbFollowuplmplMapper;
import com.huike.clues.service.ITbFollowupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ITbFollowuplmpl implements ITbFollowupService {
    @Autowired
    private TbFollowuplmplMapper mapper;
    @Autowired
    private TbClueMapper tbClueMapper;
    @Override
    @Transactional
    public void addFollow(TbFollowup tbFollowup, TbClue tbClue) {
        tbClueMapper.updateTbClue(tbClue);
        mapper.add(tbFollowup);
    }
}
